package edu.zut.cs.software.perfect.student.service;

import java.util.List;
import java.util.Optional;

import edu.zut.cs.software.perfect.base.service.GenericTreeManager;
import edu.zut.cs.software.perfect.student.domain.Classes;

/**
 * @ClassName ClassesManager
 * @Description TODO
 * @Author jihao
 * @Date 2020年5月29日 下午11:13:12
 * @Version 1.0
 */
public interface ClassesManager extends GenericTreeManager<Classes, Long>{
	
	Classes echo(Classes classes);
	
	Classes findByName(String classname);
	/**
	 * find class by ClassName
	 * @return
	 */
	Classes findById(Long id);
	/**
	 * find class by ClassID
	 * @return
	 */
	List<Classes> findAll();
	Boolean deleteClassesId(Long courseId);
	
	Optional<Classes> findByCourseId(Long courseId);
}
